package logic

import (
	"ZK306/common/proto/user"
	"ZK306/service/server"
	"context"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) UserLogin(ctx context.Context, in *user.UserLoginRequest) (*user.UserLoginResponse, error) {
	login, err := server.UserLogin(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}

func (s ServerUser) UserSms(ctx context.Context, in *user.UserSmsRequest) (*user.UserSmsResponse, error) {
	login, err := server.UserSms(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
